/**
 * 
 */
package com.xb.demo22.command;

import java.awt.Point;

/**
 * @author kexue
 *
 */
public class DrawCommand implements Command {

	protected Drawable draw;
	protected Point point;
	

	/**
	 * @param draw
	 * @param point
	 */
	public DrawCommand(Drawable draw, Point point) {
		super();
		this.draw = draw;
		this.point = point;
	}



	public void execute() {
		draw.draw(point.x, point.y);
	}

}
